package com.fbee.smartcommunities.entity;

import com.fbee.smartcommunities.core.Base;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Visitor extends Base {

    private static final long serialVersionUID = 1L;

    /**
     * 申请类型
     */
    private String type;

    /**
     * 联系方式
     */
    private String phone;

    /**
     * 访问时间
     */
    private LocalDateTime time;

    /**
     * 状态
     */
    private Boolean state;

    /**
     * 名字
     */
    private String name;

    /**
     * 是否已删除（0:否, 1:是）
     */
    private Boolean deleted;

    /**
     * 1-男 0-女
     */
    private Boolean sex;

    /**
     * 对应的用户Id
     */
    private Integer uId;

    public Visitor(Integer uId, String name, Boolean sex, String phone, String carNumber, String type, LocalDateTime time) {
        this.uId = uId;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.carNumber = carNumber;
        this.type = type;
        this.time = time;
    }

    /**
     * 来访车牌号
     */
    private String carNumber;

}
